#ifndef __CIR_BUFFER_H_
#define __CIR_BUFFER_H_

#include <QObject>
#include <stdio.h>

#define BUFFER_MAX_LINE 200

class CirBuff
{
public:
    CirBuff();
    ~CirBuff();

    static void writeByte(quint8 byte);
    static quint8 readByte(void);

    static void traverse_circular_buffer(void);

    static quint8 m_byteBuffer[BUFFER_MAX_LINE];
    static quint8 m_writePtr;  //写指针
    static quint8 m_readPtr;   //读指针
};

#endif //__CIRCULAR_BUFFER_H_






